package com.wesly.ssm.service.impl;

import com.wesly.ssm.dao.IUserDao;
import com.wesly.ssm.entity.User;
import com.wesly.ssm.service.UserService;
import com.wesly.ssm.dao.IUserDao;
import com.wesly.ssm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class IUserService implements UserService {

  @Resource
  private IUserDao userDao;


  public User login(User user) {
    return userDao.login(user);
  }

  public User getUserById(String id) {
    return userDao.selectByPrimaryKey(Integer.parseInt(id));
  }

  public void add(User user) {

  }

  public void update(User user) {

  }
}
